From: Joan Torres Date: Fri, 3 Dec 2021 00:14:16 +0000 (+0100) Subject: main: Don't terminate remote session in headless mode X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~536^2^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f3eb01642fce2510a8086c5e4ddaaa78c47f834c;p=gnome-shell.git main: Don't terminate remote session in headless mode Now gnome-shell can know if it is on headless mode (depends on https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2130) and not terminate a headless remote session when the session is locked. Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index ab97c6cc3..19735ccc0 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -126,7 +126,7 @@ function _sessionUpdated() { } let remoteAccessController = global.backend.get_remote_access_controller(); - if (remoteAccessController) { + if (remoteAccessController && !global.backend.is_headless()) { if (sessionMode.allowScreencast && _remoteAccessInhibited) { remoteAccessController.uninhibit_remote_access(); _remoteAccessInhibited = false;